x86/mm: introduce l{1,2}t local variables to map_pages_to_xen
authorWei Liu <wei.liu2@citrix.com>
Tue, 7 Jan 2020 12:06:45 +0000 (12:06 +0000)
committerWei Liu <wl@xen.org>
Tue, 7 Jan 2020 13:33:19 +0000 (13:33 +0000)
commit238a8da06d8ea92b3864e9be5aaa2450f77a6d01
tree697245c9e5b703d72d8e418d005a0d375427c10e
parent8c4392063f3a03ac44bbebbdb0df1f82fe6ebbe5
x86/mm: introduce l{1,2}t local variables to map_pages_to_xen

The pl2e and pl1e variables are heavily (ab)used in that function. It
is fine at the moment because all page tables are always mapped so
there is no need to track the life time of each variable.

We will soon have the requirement to map and unmap page tables. We
need to track the life time of each variable to avoid leakage.

Introduce some l{1,2}t variables with limited scope so that we can
track life time of pointers to xen page tables more easily.

No functional change.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c